package tmproject.hlhj.fhp.anwser.bean;

import java.util.List;

/**
 * Created by Never Fear   on 2018\8\22 0022.
 * Never More....
 */

public class ActiveDetailBean {

    /**
     * code : 200
     * data : {"id":1,"title":"活动1","description":"活动1","start_time":"2018-08-11 00:00:00","end_time":"2018-09-11 00:00:00","object":"活动对象","rule":"活动规则","question_points":2,"created_time":"2018-08-22 17:06:18","questions":[{"id":2,"activity_id":1,"stem":"题目2","options":["苹果","橘子","梨","白菜"],"correct_option":3,"created_time":"2018-08-22 17:08:12"},{"id":1,"activity_id":1,"stem":"题目1","options":["华山","黄山","泰山","峨眉山"],"correct_option":1,"created_time":"2018-08-22 17:07:27"}]}
     * msg : 成功
     */

    private int code;
    private DataBean data;
    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public static class DataBean {
        /**
         * id : 1
         * title : 活动1
         * description : 活动1
         * start_time : 2018-08-11 00:00:00
         * end_time : 2018-09-11 00:00:00
         * object : 活动对象
         * rule : 活动规则
         * question_points : 2
         * created_time : 2018-08-22 17:06:18
         * questions : [{"id":2,"activity_id":1,"stem":"题目2","options":["苹果","橘子","梨","白菜"],"correct_option":3,"created_time":"2018-08-22 17:08:12"},{"id":1,"activity_id":1,"stem":"题目1","options":["华山","黄山","泰山","峨眉山"],"correct_option":1,"created_time":"2018-08-22 17:07:27"}]
         */

        private int id;
        private String title;
        private String description;
        private String start_time;
        private String end_time;
        private String object;
        private String rule;
        private int question_points;
        private String created_time;
        private int draw_times;
        private int pass_score;
        private int has_answered;


        private List<QuestionsBean> questions;

        public int getHas_answered() {
            return has_answered;
        }

        public void setHas_answered(int has_answered) {
            this.has_answered = has_answered;
        }

        public int getDraw_times() {
            return draw_times;
        }

        public void setDraw_times(int draw_times) {
            this.draw_times = draw_times;
        }

        public int getPass_score() {
            return pass_score;
        }

        public void setPass_score(int pass_score) {
            this.pass_score = pass_score;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        public String getStart_time() {
            return start_time;
        }

        public void setStart_time(String start_time) {
            this.start_time = start_time;
        }

        public String getEnd_time() {
            return end_time;
        }

        public void setEnd_time(String end_time) {
            this.end_time = end_time;
        }

        public String getObject() {
            return object;
        }

        public void setObject(String object) {
            this.object = object;
        }

        public String getRule() {
            return rule;
        }

        public void setRule(String rule) {
            this.rule = rule;
        }

        public int getQuestion_points() {
            return question_points;
        }

        public void setQuestion_points(int question_points) {
            this.question_points = question_points;
        }

        public String getCreated_time() {
            return created_time;
        }

        public void setCreated_time(String created_time) {
            this.created_time = created_time;
        }

        public List<QuestionsBean> getQuestions() {
            return questions;
        }

        public void setQuestions(List<QuestionsBean> questions) {
            this.questions = questions;
        }

        public static class QuestionsBean {
            /**
             * id : 2
             * activity_id : 1
             * stem : 题目2
             * options : ["苹果","橘子","梨","白菜"]
             * correct_option : 3
             * created_time : 2018-08-22 17:08:12
             */

            private int id;
            private int activity_id;
            private String stem;
            private int correct_option;
            private String created_time;
            private List<String> options;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getActivity_id() {
                return activity_id;
            }

            public void setActivity_id(int activity_id) {
                this.activity_id = activity_id;
            }

            public String getStem() {
                return stem;
            }

            public void setStem(String stem) {
                this.stem = stem;
            }

            public int getCorrect_option() {
                return correct_option;
            }

            public void setCorrect_option(int correct_option) {
                this.correct_option = correct_option;
            }

            public String getCreated_time() {
                return created_time;
            }

            public void setCreated_time(String created_time) {
                this.created_time = created_time;
            }

            public List<String> getOptions() {
                return options;
            }

            public void setOptions(List<String> options) {
                this.options = options;
            }
        }
    }
}
